package io.github.shang11925.sbvuewelearn.service;

import io.github.shang11925.sbvuewelearn.dto.VideoAttachmentsDTO;
import io.github.shang11925.sbvuewelearn.entity.VideoAttachments;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface VideoAttachmentsService {
    List<VideoAttachments> findBySectionId(Long sectionId);

    void add(VideoAttachmentsDTO videoAttachmentsDTO);

    void uploadCover(MultipartFile file, VideoAttachmentsDTO videoAttachmentsDTO) throws IOException;
}
